import winOpenVue from '@/components/winOpen.vue'
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'index',
        component: () =>
            import ('../views/index.vue')
    },
    {
        path: '/test',
        name: 'test',
        component: () =>
            import ('../views/test.vue')
    },
    {
        path: '/html',
        name: 'html',
        component: () =>
            import ('../views/html_test.vue')
    },
    {
        path: '/html2',
        name: 'html2',
        component: () =>
            import ('../views/html2_test.vue')
    },
    {
        path: '/treeNode',
        name: 'treeNode',
        component: () =>
            import ('../views/treeNode.vue')
    },
    {
        path: '/testMod',
        name: 'testMod',
        component: () =>
            import ('../components/mod/html/test.vue')
    },
	{
        path: '/openHierarchy',
        name: 'openHierarchy',
        component: () =>
            import ('../components/winOpen.vue')
    },

]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router